export const constantRoutes=[
  {
    path: "/login",
    component: () => import("@/views/login/login.vue"),
    name: "Login",
    meta: {
      title: "登录",
      hidden: true,
    },
  },
  {
    path: "/",
    name: "Layout",
    component: () => import("@/Layout/layout.vue"),
    redirect: "/home",
    meta: {
      hidden: false,
    },
    children: [
      {
        path: "/home",
        name: "Home",
        component: () => import("@/views/home/home.vue"),
        meta: {
          title: "首页",
          hidden: false,
          icon: "home",
        },
      },
    ],
  },
  {
    path: "/screen",
    component: () => import("@/views/screen/screen.vue"),
    name: "Screen",
    meta: {
      title: "数据大屏",
      hidden: false,
      icon: "screen",
    },
  },
  {
    path: "/404",
    component: () => import("@/views/NotFound/NotFound.vue"),
    name: "404",
    meta: {
      title: "404",
      hidden: true,
    },
  },
  {
    path: "/:pathMatch(.*)",
    redirect: "/404",
    name: "NotFound",
    meta: {
      title: "notFount",
      hidden: true,
    },
  },
]

